#include "Protocols/Protocal.h"
#include "Protocols/PacketHeader.h"
#include "Protocols/ProtocalCode.h"
#include "Protocols/ProtocalPool.h"
#include "qstringlist.h"

DECLARE_PROTOCOLHEADER_BEGIN(SmtpHeader)
DECLARE_PROTOCOLHEADER__DEFAULTCONSTRUCTOR(SmtpHeader)

	int getHeaderLength() const{
		return mLength;
	}
	QString getSummary() const;
	void toShowableItems(ShowableItem* root) const;
	
	private:
		enum _mType{RESPONSE, REQUEST, MESSAGE};
		_mType typeFlag() const;
		int spaceIndex() const;
		QStringList getMessageList() const;
DECLARE_PROTOCOLHEADER_END
DECLARE_PROTOCOL_BEGIN(SmtpProtocal,SmtpHeader)
DECLARE_PROTOCOL_END